'use strict';
import React from 'react';
import {
    View,
    Text,
    Image,
    TouchableOpacity,
} from 'react-native';

import Toast from '../Utils/toast';

class HotSelling extends React.Component{
    render(){
        return (
            <View style={{
                flexDirection: 'row',
                padding: 5,
                alignItems: 'center',
            }}>
                <Image
                    source={require('../../Image/icon_hot.png')}
                    style={{width: 20, height: 20, marginLeft: 5}}/>
                <Text
                    style={{fontSize: 15, color: 'black', marginLeft: 10, textAlignVertical: 'center'}}>
                    大赤坎村手工雨伞，在
                </Text>
                <TouchableOpacity onPress={() => {
                    this.props.goToSell();
                }}>
                    <Text style={{
                        fontSize: 15,
                        color: 'red',
                        textDecorationLine: 'underline',
                        marginLeft: 3,
                        marginRight: 3,
                    }}>
                        何燕芳农家店
                    </Text>
                </TouchableOpacity>
                <Text
                    style={{fontSize: 15, color: 'black', marginRight: 10, textAlignVertical: 'center'}}>
                    已经开售
                </Text>
            </View>
        )
    }
}

export default HotSelling;